﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Student:IComparable
    {
        public string name;
        public string num;
        public int age;

        public Student(string name, string num, int age)
        {
            this.name = name;
            this.num = num;
            this.age = age;
        }
        public Student() { }
        public override string ToString()
        {
            return $"姓名{name}学号{num}年龄{age}";
        }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}
